package com.pratik.android.smssniffer.services;

import com.pratik.android.smssniffer.telelphony.impl.TelephonyServiceRegistry;

import android.app.IntentService;
import android.content.Intent;

public class MessageDeleteService extends IntentService{

	public MessageDeleteService() {
		super("MessageDeleteService");
	}

	@Override
	protected void onHandleIntent(Intent intent) {
		String phoneNo = intent.getStringExtra("PHNO");
		String smsBody = intent.getStringExtra("SMSBODY");
		
		TelephonyServiceRegistry
		.getInstance()
		.getSmsService()
		.deleteRecentReceivedMessage(this, phoneNo,
				smsBody);
	}

}
